<?php
/**
* DPMatchReserve copyright (c) 2008 sk89q
* @ http://digitalpaint.therisenrealm.com
* 
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* 
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*/

require_once "./functions.php";

$smarty->assign('title', 'Server Now Leased');

// ===============================
// Get input
// ===============================

$server = $_GET['server'];
$password = $_GET['password'];
$login_password = $_GET['login'];

$server_info = @$CONFIG['servers'][$server];

// ===============================
// Send it off
// ===============================

$smarty->assign('server', $server);
$smarty->assign('server_name', $server_info['name']);
$smarty->assign('host', $server_info['host']);
$smarty->assign('port', $server_info['port']);
$smarty->assign('password', $password);
$smarty->assign('login_password', $login_password);
$smarty->assign('default_settings', $CONFIG['default_settings']);
$smarty->assign('user_settings', $CONFIG['user_settings']);

$smarty->display('play.tpl');
?>